<?php
	/**
	* @package ParkFind
	* @desc This is the report receipt page. This is tells user whether report was successfully submitted or not.
	*/
	/**
	* @desc This include file will load the directory settings for the Smarty Templates
	*/	
	
	  
   session_start();
	require 'includes/smarty.inc';
	$smarty->assign('title', "Report - Thank You!");
	$smarty->assign('user_id', $_SESSION["user_id"]);	
	$smarty->assign('last', $_SESSION["lastviewed"]);	
	$smarty->assign('firstname', $_SESSION["firstname"]);
	$smarty->assign('role', $_SESSION["role"]);
	$smarty->assign('top5', $_SESSION["top5"]);	
	$smarty->display('header.tpl');
	
	$result = $_GET["result"];
	
	if ($result == "success")		
		$message = "Report submitted successfully to appropriate bodies. Thank you for your time<br/><br/>";		
	else
		$message = "Failed to submit report";
		
	$smarty->assign('message', $message);
	$smarty->display('reportreceipt.tpl');
	$smarty->display('footer.tpl');
 
?>
